<#-- 生成请求体构建方法 -->
<#function generateRequestBodyBuilder>
    <#local bodyCode = ""/>
    <#if httpMethod != "GET" && hasJsonBody>

        /**
        * 构建JSON请求体
        */
        private String buildRequestBody() throws Exception {
        Map<String, Object> requestBody = new HashMap<>();
        <#list enterParameters as param>
            <#if param.type == "OBJECT" || param.type == "ARRAY">
                requestBody.put("${param.name}", ${param.name});
            </#if>
        </#list>
        return objectMapper.writeValueAsString(requestBody);
        }
    </#if>
    <#return bodyCode/>
</#function>